﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace ReadAndWriteTest
{
    [TestClass]
    public class TestTXT
    {
        [TestMethod]
        public void TestMethodReadPathNull()
        {
            ReadAndWrite.ReadAndWrite rw = new ReadAndWrite.ReadAndWrite(null);
            Assert.AreEqual(String.Empty, rw.Read());
        }

        [TestMethod]
        public void TestMethodWritePathNull()
        {
            ReadAndWrite.ReadAndWrite rw = new ReadAndWrite.ReadAndWrite(null);
            Assert.AreEqual(false, rw.Write(null));
        }


        [TestMethod]
        public void TestMethodReadLinesPathNull()
        {
            ReadAndWrite.ReadAndWrite rw = new ReadAndWrite.ReadAndWrite(null);
            Assert.AreEqual(null, rw.ReadLines());
        }
    }
}
